package model;

public class ClassModel {
    private String classId;
    private String className;
    private Course course;
    private int startYear;
    private int finishYear;
    private int noSemester;

    public ClassModel(String classId, String className, Course course, int startYear, int finishYear, int noSemester) {
        this.classId = classId;
        this.className = className;
        this.course = course;
        this.startYear = startYear;
        this.finishYear = finishYear;
        this.noSemester = noSemester;
    }

    public ClassModel() {
    }

    public String getClassId() {
        return classId.toUpperCase();
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public int getStartYear() {
        return startYear;
    }

    public void setStartYear(int startYear) {
        this.startYear = startYear;
    }

    public int getFinishYear() {
        return finishYear;
    }

    public void setFinishYear(int finishYear) {
        this.finishYear = finishYear;
    }

    public int getNoSemester() {
        return noSemester;
    }

    public void setNoSemester(int noSemester) {
        this.noSemester = noSemester;
    }

    @Override
    public String toString() {
        return className;
    }
    
}
